BeSly Software Solutions About yab Demos About us Admin






Name:

do -- start a (conditionless) do-loop

Synopsis:
do 
... 
loop

Description:
Starts a loop, which is terminated by loop; everything between do and loop willbe repeated forever. This loop has no condition, so it is an infinite loop; note however, that a break- or goto-statement might be used to leave this loop anytime.

Example:
do 
	a=a+1 
	print a 
	if (a>100) break 
loop 
Explanation:

  This example prints the numbers between 1 and 101. The break-statement is used to leave the loop.



Related: loop, repeat, while, break